<?php

namespace app\qsapi\controller;


use app\qsapi\service\BannerPointService;
use think\response\Json;


/**
 * 游戏模块
 */
class BannerPoint extends BaseController
{
    protected $needLogin = ['clickbannerpoint'];

    /**
     * 点击banner图,埋点接口
     * @return Json
     */
    public function clickBannerPoint(): Json
    {
        //区分是否为登录状态
        try {
            $memberId = $this->request->getMemberId();
        }catch (\Throwable $e){
            $memberId = 0;
        }
        $BannerService = new BannerPointService();
        return json($BannerService->clickBanner($memberId, $this->request->post()));
    }



}
